// samsting : this file is auto create.

#include "Ecs/2014-05-26/DescribeImagesResponse.h"

namespace aliyun { namespace Ecs {

DescribeImagesResponse::DescribeImagesResponse() {
}

const string& DescribeImagesResponse::Image::DiskDeviceMapping::GetSnapshotId(void) const {
  return SnapshotId_;
}

const string& DescribeImagesResponse::Image::DiskDeviceMapping::GetSize(void) const {
  return Size_;
}

const string& DescribeImagesResponse::Image::DiskDeviceMapping::GetDevice(void) const {
  return Device_;
}

const string& DescribeImagesResponse::Image::Tag::GetTagKey(void) const {
  return TagKey_;
}

const string& DescribeImagesResponse::Image::Tag::GetTagValue(void) const {
  return TagValue_;
}

const std::vector<DescribeImagesResponse::Image::DiskDeviceMapping>& DescribeImagesResponse::Image::GetDiskDeviceMappings(void) const {
  return DiskDeviceMappings_;
}

const std::vector<DescribeImagesResponse::Image::Tag>& DescribeImagesResponse::Image::GetTags(void) const {
  return Tags_;
}

const string& DescribeImagesResponse::Image::GetProgress(void) const {
  return Progress_;
}

const string& DescribeImagesResponse::Image::GetImageId(void) const {
  return ImageId_;
}

const string& DescribeImagesResponse::Image::GetImageName(void) const {
  return ImageName_;
}

const string& DescribeImagesResponse::Image::GetImageVersion(void) const {
  return ImageVersion_;
}

const string& DescribeImagesResponse::Image::GetDescription(void) const {
  return Description_;
}

int DescribeImagesResponse::Image::GetSize(void) const {
  return Size_;
}

const string& DescribeImagesResponse::Image::GetImageOwnerAlias(void) const {
  return ImageOwnerAlias_;
}

const string& DescribeImagesResponse::Image::GetOSName(void) const {
  return OSName_;
}

const string& DescribeImagesResponse::Image::GetArchitecture(void) const {
  return Architecture_;
}

const string& DescribeImagesResponse::Image::GetStatus(void) const {
  return Status_;
}

const string& DescribeImagesResponse::Image::GetProductCode(void) const {
  return ProductCode_;
}

bool DescribeImagesResponse::Image::GetIsSubscribed(void) const {
  return IsSubscribed_;
}

const string& DescribeImagesResponse::Image::GetCreationTime(void) const {
  return CreationTime_;
}

const string& DescribeImagesResponse::Image::GetIsSelfShared(void) const {
  return IsSelfShared_;
}

const string& DescribeImagesResponse::Image::GetOSType(void) const {
  return OSType_;
}

const string& DescribeImagesResponse::Image::GetPlatform(void) const {
  return Platform_;
}

const string& DescribeImagesResponse::Image::GetUsage(void) const {
  return Usage_;
}

bool DescribeImagesResponse::Image::GetIsCopied(void) const {
  return IsCopied_;
}

const std::vector<DescribeImagesResponse::Image>& DescribeImagesResponse::GetImages(void) const {
  return Images_;
}

const string& DescribeImagesResponse::GetRegionId(void) const {
  return RegionId_;
}

int DescribeImagesResponse::GetTotalCount(void) const {
  return TotalCount_;
}

int DescribeImagesResponse::GetPageNumber(void) const {
  return PageNumber_;
}

int DescribeImagesResponse::GetPageSize(void) const {
  return PageSize_;
}

const char* DescribeImagesResponse::BaseKey(void) {
  return "DescribeImagesResponse";
}

void DescribeImagesResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int Images__length = 0;
  UnmarshallerInt(Images__length, response_map, "DescribeImagesResponse.Images.Length");
  if(Images__length >= 0) {
    Images_.resize(Images__length);
    for(int i1 = 0; i1 < Images__length; i1++) {
      int Images_i1_DiskDeviceMappings__length = 0;
      UnmarshallerInt(Images_i1_DiskDeviceMappings__length, response_map, "DescribeImagesResponse.Images[+"+string_ValueOfInt(i1)+"].DiskDeviceMappings.Length");
      if(Images_i1_DiskDeviceMappings__length >= 0) {
        Images_[i1].DiskDeviceMappings_.resize(Images_i1_DiskDeviceMappings__length);
        for(int i2 = 0; i2 < Images_i1_DiskDeviceMappings__length; i2++) {
          UnmarshallerString(Images_[i1].DiskDeviceMappings_[i2].SnapshotId_, response_map, "DescribeImagesResponse.Images[+"+string_ValueOfInt(i1)+"].DiskDeviceMappings["+string_ValueOfInt(i2)+"].SnapshotId");
          UnmarshallerString(Images_[i1].DiskDeviceMappings_[i2].Size_, response_map, "DescribeImagesResponse.Images[+"+string_ValueOfInt(i1)+"].DiskDeviceMappings["+string_ValueOfInt(i2)+"].Size");
          UnmarshallerString(Images_[i1].DiskDeviceMappings_[i2].Device_, response_map, "DescribeImagesResponse.Images[+"+string_ValueOfInt(i1)+"].DiskDeviceMappings["+string_ValueOfInt(i2)+"].Device");
        } // for(int i2 = 0; i2 < Images_i1_DiskDeviceMappings__length; i2++) {
      } // if(Images_i1_DiskDeviceMappings__length >= 0) {

      int Images_i1_Tags__length = 0;
      UnmarshallerInt(Images_i1_Tags__length, response_map, "DescribeImagesResponse.Images[+"+string_ValueOfInt(i1)+"].Tags.Length");
      if(Images_i1_Tags__length >= 0) {
        Images_[i1].Tags_.resize(Images_i1_Tags__length);
        for(int i2 = 0; i2 < Images_i1_Tags__length; i2++) {
          UnmarshallerString(Images_[i1].Tags_[i2].TagKey_, response_map, "DescribeImagesResponse.Images[+"+string_ValueOfInt(i1)+"].Tags["+string_ValueOfInt(i2)+"].TagKey");
          UnmarshallerString(Images_[i1].Tags_[i2].TagValue_, response_map, "DescribeImagesResponse.Images[+"+string_ValueOfInt(i1)+"].Tags["+string_ValueOfInt(i2)+"].TagValue");
        } // for(int i2 = 0; i2 < Images_i1_Tags__length; i2++) {
      } // if(Images_i1_Tags__length >= 0) {

      UnmarshallerString(Images_[i1].Progress_, response_map, "DescribeImagesResponse.Images["+string_ValueOfInt(i1)+"].Progress");
      UnmarshallerString(Images_[i1].ImageId_, response_map, "DescribeImagesResponse.Images["+string_ValueOfInt(i1)+"].ImageId");
      UnmarshallerString(Images_[i1].ImageName_, response_map, "DescribeImagesResponse.Images["+string_ValueOfInt(i1)+"].ImageName");
      UnmarshallerString(Images_[i1].ImageVersion_, response_map, "DescribeImagesResponse.Images["+string_ValueOfInt(i1)+"].ImageVersion");
      UnmarshallerString(Images_[i1].Description_, response_map, "DescribeImagesResponse.Images["+string_ValueOfInt(i1)+"].Description");
      UnmarshallerInt(Images_[i1].Size_, response_map, "DescribeImagesResponse.Images["+string_ValueOfInt(i1)+"].Size");
      UnmarshallerString(Images_[i1].ImageOwnerAlias_, response_map, "DescribeImagesResponse.Images["+string_ValueOfInt(i1)+"].ImageOwnerAlias");
      UnmarshallerString(Images_[i1].OSName_, response_map, "DescribeImagesResponse.Images["+string_ValueOfInt(i1)+"].OSName");
      UnmarshallerString(Images_[i1].Architecture_, response_map, "DescribeImagesResponse.Images["+string_ValueOfInt(i1)+"].Architecture");
      UnmarshallerString(Images_[i1].Status_, response_map, "DescribeImagesResponse.Images["+string_ValueOfInt(i1)+"].Status");
      UnmarshallerString(Images_[i1].ProductCode_, response_map, "DescribeImagesResponse.Images["+string_ValueOfInt(i1)+"].ProductCode");
      UnmarshallerBool(Images_[i1].IsSubscribed_, response_map, "DescribeImagesResponse.Images["+string_ValueOfInt(i1)+"].IsSubscribed");
      UnmarshallerString(Images_[i1].CreationTime_, response_map, "DescribeImagesResponse.Images["+string_ValueOfInt(i1)+"].CreationTime");
      UnmarshallerString(Images_[i1].IsSelfShared_, response_map, "DescribeImagesResponse.Images["+string_ValueOfInt(i1)+"].IsSelfShared");
      UnmarshallerString(Images_[i1].OSType_, response_map, "DescribeImagesResponse.Images["+string_ValueOfInt(i1)+"].OSType");
      UnmarshallerString(Images_[i1].Platform_, response_map, "DescribeImagesResponse.Images["+string_ValueOfInt(i1)+"].Platform");
      UnmarshallerString(Images_[i1].Usage_, response_map, "DescribeImagesResponse.Images["+string_ValueOfInt(i1)+"].Usage");
      UnmarshallerBool(Images_[i1].IsCopied_, response_map, "DescribeImagesResponse.Images["+string_ValueOfInt(i1)+"].IsCopied");
    } // for(int i1 = 0; i1 < Images__length; i1++) {
  } // if(Images__length >= 0) {

  UnmarshallerString(RegionId_, response_map, "DescribeImagesResponse.RegionId");
  UnmarshallerInt(TotalCount_, response_map, "DescribeImagesResponse.TotalCount");
  UnmarshallerInt(PageNumber_, response_map, "DescribeImagesResponse.PageNumber");
  UnmarshallerInt(PageSize_, response_map, "DescribeImagesResponse.PageSize");
}


} } // namespace aliyun { namespace Ecs {

// end of file 
